<template>
  <div
    :class="`vavle9 ${props.value == 1 ? 'is_on' : 'is_off'}`"
    :style="{
      top: props.top + 'px',
      left: props.left + 'px',
    }"
  >
    <span class="text">M</span>
  </div>
</template>

<script>
import { defineComponent, onMounted } from "vue";
export default defineComponent({
  name: "Vavle9",
});
</script>
<script setup>
const props = defineProps({
  value: {
    default: 0,
  },
  top: {
    default: 0,
  },
  left: {
    default: 0,
  },
});
</script>

<style lang="scss" scoped>
.vavle9 {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transform: rotate(90deg);
  display: flex;
  align-items: center;
  justify-content: center;

  .text {
    font-size: 12px;
    position: relative;
  }
}

.vavle9.is_on {
  background-color: #03fc02;
  color: #051427;
}

.vavle9.is_off {
  background-color: #ff0b0f;
  color: white;
}
</style>
